Use your cannon ball to destroy the foundations of the castle structure. When the castle structure falls, the guards will be eliminated. Remember to avoid hurting the hostages!